<?php include($folder.'/layouts/templates/frontend/header.tpl') ?>
<?php include($folder.'/layouts/templates/frontend/middle.tpl') ?>
<center>
<?php echo paginator(array(
	'id' => 'main',
	'parameters' => array($_GET['gal']),
	'refreshUrl' => array(
		'currentPage' => array(
			'sql' =>
				'SELECT COUNT(1)
				FROM gallery_picture gp
				WHERE gp.gallery_id = :gal
					AND gp.number < ( 	SELECT gp.number
										FROM gallery_picture gp
										WHERE gp.gallery_id = :gal
											AND gp.picture_id = :pic )',
			'parameters' => array(
				'gal' => $_GET['gal'],
				'pic' => $_GET['pic']
			)
		),
		'pageLinks' => array(
			'sql' =>
				'SELECT gp.picture_id
				FROM gallery_picture gp 
				WHERE gp.gallery_id = :gal 
				ORDER BY gp.number 
				LIMIT :from, :maxRows',
			'parameters' => array(
				'gal' => $_GET['gal']
			)
		)
	),
	'selectCountMethod' => 'kep_select_count',
	'block' => $_GET['oldal'] - 1,
	'itemsPerPage' => 1)) ?>
</center>
<div style="width:100%;margin:0px;padding:0px;border-width:0px" align="center">
<img src="<?php echo $prefix ?>/kep-kozepes?id=<?php echo $_GET['pic'] ?>" style="border-width:0px;width:540px" />
</div>
<?php /* echo repeater(array(
	'parameters' => array($_GET['gal']),
	'id' => 'main',
	'block' => $_GET['oldal'] - 1,
	'itemsPerPage' => 1,
	'selectMethod' => 'kep_select',
	'cellTemplate' => '
		<img src="'.$prefix.'/kep-kozepes?id={picture_id}" style="border-width:0px;width:540px" />')) */ ?>
<?php include($folder.'/layouts/templates/frontend/footer.tpl') ?>